package threading;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author krystal
 * @date 2022/11/26 10:04
 */
public class Demo29 {
    public static void main(String[] args) {
        ReentrantLock locker=new ReentrantLock(true);
        try {
            locker.lock();
        }finally {
            locker.unlock();
        }
    }
}
